*:focus{
    outline: none;
}

 /* //滚动条凹槽的颜色，还可以设置边框属性 */
 ::-webkit-scrollbar-track-piece {
    background-color:#f8f8f8;
    border-radius: 8px;
    }
    /* //滚动条的宽度 */
    ::-webkit-scrollbar {
    width:3px;
    height:6px;
    }
    /* //滚动条的设置 */
    ::-webkit-scrollbar-thumb {
    background-color:#dddddd;
    background-clip:padding-box;
    min-height:28px;
    border-radius: 8px;
    }
    ::-webkit-scrollbar-thumb:hover {
    background-color:#bbb;
    }

header{
    height: 50px;
    text-align: center;
    font-size: 18px;
    line-height: 50px;
    background-color: cadetblue;
    color: #fff;
}

.chat-content{
    height: 420px;
    border: 1px solid #ccc;
    padding: 0 10px;
    overflow: auto;
}
.chat-tools{
    height: 40px;
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    border-bottom: 0;
    line-height: 40px;
    padding: 0 15px;
}
.chat-input{
    position: relative;
    height: 100px;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
}

.chat-input .chat-input-content textarea{
    height: 100px;
    resize: none;
    font-size: 14px;
    font-weight: bold;
    color: #999;
}

.chat-input .chat-input-btn{
    position: absolute;
    bottom: 10px;
    right: 10px;
}
.chat-content .chat-item{
    margin: 30px 0;
}
.chat-content .chat-item::after{
    content: "";
    display: block;
    clear: both;
}
.chat-content .chat-item .chat-item-detail{
    display: flex;
}

.chat-content .chat-item .chat-item-info{
    display: flex;
}

.chat-content .chat-item .chat-item-user .chat-item-user-thumb{
    width: 40px;
    height: 40px;
    background-color: salmon;
    border-radius: 5px;
    text-align: center;
    line-height: 40px;
    color: #fff;
    font-size: 20px;
}

.chat-content .chat-item .chat-item-info .chat-item-info-nick{
    font-size: 12px;
    color: #666;
    padding-left: 0px;
}

.chat-content .chat-item .chat-item-info .chat-item-info-nick .time{
    color: #999;
    padding-left: 10px;
}

.chat-content .chat-item-detail .chat-item-content{
    position: relative;
    min-width: 300px;
    margin-left: 10px;
    padding: 5px 8px;
    line-height: 24px;
    color: #333;
    background-color: #e9e9e9;
    border-radius: 5px;
    max-width: 500px;
    word-wrap: break-word;
}

.chat-content .chat-item-detail .chat-item-content::before{
    content: "";
    position: absolute;
    top: 20px;
    transform: translateY(-50%);
    width: 0;
    left:-10px;
    height: 0;
    border:6px solid transparent;
    border-right-color: #e9e9e9;
}

.chat-content .chat-for-user .chat-item-info{
    float: right;
}

.chat-content .chat-for-user .chat-item-detail{
    float: right;
}

.chat-content .chat-for-user .chat-item-user  .chat-item-user-thumb{
    margin-left: 10px;
    color: #fff;
    background-color: turquoise;
}

.chat-content .chat-for-user .chat-item-detail .chat-item-content::before{
    right: -10px;
    left: auto;
    border-right-color: transparent;
    border-left-color: #e9e9e9;
}